
import { MTableRow } from "@/modules/common"
import { MRecharge } from "@/modules/combo"
import { EIcCardStatus, EUserStatus } from "./account.enum"
import { MRole } from "@/modules/permission"

export interface Muser extends MTableRow {
    mobile: string,
    name: string,
    status: EUserStatus,
    password: string,
    orgId?: number,
    roles?: MRole[],
    roleIds: number[],
    token?: string,
    tokenName?: string
}

export interface MCustomer extends MTableRow {
    nickName: string,
    openId: string,
    mobile: string,
    icCardNo?: string,
    balance: number,
    comboList?: MRecharge[],
    useElectricity?: number,
    useMinute?: number
}

export interface MIcCard extends MTableRow {
    no: string,
    customerId?: number, //	客户id
    deposit: number,
    status: EIcCardStatus
}